package bairui.international.console.web.controller.index.roll;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_IndexRollImage;

/**
 *
 * 滚动图片管理
 *
 * @generated
 * 
 * @see STest_C_Index_Roll_RollManage_Publish 测试
 *
 */
@Controller
public class C_Index_Roll_RollManage_Publish
 extends SC_Index_Roll_RollManage_Publish 
{
	
	@Autowired private Service_IndexRollImage service_IndexRollImage;

	/**
	 * 发布
	 */
	@Action(Publish.class)
	@GetMapping(Publish.RequestMappingValue)
	public @FomatOutput @ResponseBody Object publish(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Publish.PathVariableName.ImgId) long imgId
	) throws Exception {
		service_IndexRollImage.publish(imgId);
		//
		return null;
	}
	

}
